package com.example.ymm.modules1.entity.my.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 班级
 */

@Data
public class DbGood implements Serializable {

    @TableId
    private String goodId;

    private String goodName;

    String mainImg;
    String detail;
    String categoryId;
    String categoryName;
    Integer status;//状态 1 上架 0下架
    Integer stock;//库存
    Integer integral;//所需积分

    @ApiModelProperty(value = "是否删除：0->未删；1->已删")
    @TableLogic
    private Integer isDelete;

    @TableField(fill= FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;



}
